<template>
  <div class="lazy-component">
    <h3>这是一个懒加载组件</h3>
    <p>这个组件只有在你点击按钮后才会被加载</p>
    <div class="content">
      <div class="icon">🚀</div>
      <p>组件已成功加载！</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'LazyComponent',
  mounted() {
    console.log('LazyComponent 已加载');
  }
}
</script>

<style scoped>
.lazy-component {
  padding: 20px;
  background-color: #e8f5e9;
  border-radius: 8px;
  text-align: center;
}

.content {
  margin-top: 20px;
}

.icon {
  font-size: 40px;
  margin-bottom: 10px;
}

h3 {
  color: #2e7d32;
  margin-top: 0;
}

p {
  color: #1b5e20;
}
</style>